package com.xteam.utils;

import java.util.Properties;

import org.hibernate.Hibernate;
import org.hibernate.id.UUIDHexGenerator;

public final class UUID{

	private final static UUIDHexGenerator gen = new UUIDHexGenerator();
	
	static {
		gen.configure(Hibernate.STRING,  new Properties(){
			private static final long serialVersionUID = 8008493096611877772L;
			{
				setProperty("separator", "");
			}
		}, null);
	}

	private UUID(){
	}

	public static String getUUID(){
		return (String) gen.generate(null, null);
	}
}
